/*
 * WineInfo.cpp
 *
 *  Created on: Apr 26, 2010
 *      Author: Sequoyha
 */
#include "WineInfo.h"

//CONSTRUCTORS-------------------------------------------------------------
WineInfo::WineInfo():wineName(""),vintage(0),price(0.00){}
WineInfo::WineInfo(string name, int vin, float pr):wineName(name),
					vintage(vin),price(pr) {}

//SETTERS------------------------------------------------------------------
void WineInfo::setWineName(string name){wineName = name;}
void WineInfo::setVintage(int vin){vintage = vin;}
void WineInfo::setPrice(float pr){price = pr;}

//GETTERS------------------------------------------------------------------
string WineInfo::getWineName(){return wineName;}
int WineInfo::getVintage(){return vintage;}
float WineInfo::getPrice(){return price;}

//OPERATORS
bool WineInfo::operator==(string srchItem)const
{
	if(this->wineName == srchItem)
	{return true;}
	else{return false;}
}
